import request from '@/utils/request'

// 接受人树形结构
export const recipientThree = (data: any): Promise<any> =>
  request.get(`/messageSet/getMessageTree?signUserLocationId=${data.signUserLocationId}`)

// 消息推送列表
export const messagePushList = (data: any): Promise<any> => request.post('/messageSet/getHistoryPushList', data)

// 消息发送
export const messageSend = (data: any): Promise<any> => request.post('/messageSet/sendMessage', data)

// 模板列表接口
export const templateTableList = (data: any): Promise<any> => request.post('/messageSet/getMessageTemplateList', data)

// 模板管理删除接口
export const templateDeleteInterface = (data: any): Promise<any> =>
  request.delete(`/messageSet/deleteTemplate/${data.id}`)

// 模板管理新增接口
export const templateAdd = (data: any): Promise<any> => request.post('/messageSet/saveOrUpdateMessageTemplate', data)
